package com.sxkf.template.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@ApiModel(description = "t_friend_record")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_friend_record")
public class FriendRecord {
    /**
     * 主键PK
     */
    @TableId(value = "id")
    @ApiModelProperty(value = "主键PK",hidden = true)
    private String id;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value = "用户id")
    private String userId;

    /**
     * 好友id
     */
    @TableField(value = "friend_id")
    @ApiModelProperty(value = "好友id")
    private String friendId;

    /**
     * 状态 0申请中，1通过申请，2拒绝申请
     */
    @TableField(value = "`status`")
    @ApiModelProperty(value = "状态 0申请中，1通过申请，2拒绝申请")
    private String status;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间",hidden = true)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "修改时间",hidden = true)
    private Date updateTime;
}
